<%--
  Created by IntelliJ IDEA.
  User: Xiaoqz
  Date: 2021/8/31
  Time: 22:33
  To change this template use File | Settings | File Templates.
--%>
<%--isELIgnored: 忽视EL表达式--%>
<%--@ page contentType="text/html;charset=UTF-8" language="java" --%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--引入JSTL标签库--%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h3 align="center">用户数据表</h3>
<hr>
<table border="1" cellspacing="0" width="800" align="center">
    <tr>
        <th>序号</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>性别</th>
        <th>爱好</th>
    </tr>
    <c:forEach items="${users}" var="user" varStatus="status">
        <tr  align="center">
            <form action="#" method="post">
                <%--<td>${user.id}</td>--%>
                <%--<td>${status.index}</td>--%>
                <td>${status.count}</td>
                <%--<td>${user.getName()}</td>--%>
                <td>${user.name}</td>
                <td>${user.getAge()}</td>
                <td>${user.getGender()}</td>
                <td>
                    <c:if test="${user.getGender() == '女'}">洗头</c:if>
                    <c:if test="${user.getGender() == '男'}">大宝剑</c:if>
                </td>
            </form>
        </tr>
    </c:forEach>
</table>
</body>
</html>
